#ifndef LOGINWIDGET_H
#define LOGINWIDGET_H

#include <QWidget>
#include"mainwindow.h"
#include<QFile>
#include<QBitmap>
#include<QPainter>
#include<QMouseEvent>
namespace Ui {
class LoginWidget;
}

class LoginWidget : public QWidget
{
    Q_OBJECT

public:
    explicit LoginWidget(QWidget *parent = nullptr);
    ~LoginWidget();

    void mousePressEvent(QMouseEvent *event);

    void mouseMoveEvent(QMouseEvent *event);

private slots:
    void on_pushButton_clicked();

    void on_pushButton_2_clicked();

private:
    Ui::LoginWidget *ui;

    QPoint dragPosition;// 记录鼠标按下时的偏移位置
};

#endif // LOGINWIDGET_H
